package cn.ording.service.imp;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.ording.dao.SortDao;
import cn.ording.entity.Sort;
import cn.ording.service.SortService;

@Service("SortServiceImp")
public class SortServiceImp implements SortService{
	
	private SortDao sortDao;
	
	@Override
	@Transactional
	public void createSort(Sort sort) {
		sortDao.create(sort);
	}

	@Override
	@Transactional
	public void deleteSort(Integer sid) {
		sortDao.delete(sid);
	}

	@Override
	public void updateSort(Sort sort) {
		
	}

	public SortDao getSortDao() {
		return sortDao;
	}

	@Resource(name="SortDaoHibernateImp")
	public void setSortDao(SortDao sortDao) {
		this.sortDao = sortDao;
	}

}
